<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>new (ScheduleGame)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/schedule_game.rb, line 11</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">line</span>)
    <span class="ruby-identifier">temp</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">','</span>)
    <span class="ruby-ivar">@date</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@day_of_week</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@away_team_abbrev</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">3</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@away_league</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">4</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@away_game_number</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">5</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@home_team_abbrev</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">6</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@home_league</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">7</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@home_game_number</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">8</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
    <span class="ruby-ivar">@day_or_night</span> = <span class="ruby-identifier">temp</span>[<span class="ruby-value">9</span>].<span class="ruby-identifier">tr_s</span>(<span class="ruby-value str">'&quot;'</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>